package com.zhuhjay.controller;

import com.zhuhjay.model.domain.HttpResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhuHJay
 * @date 2023/4/24 21:50
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("hello")
    public String hello(){
        return "hello";
    }

    @GetMapping("result")
    public HttpResult<?> result(){
        return HttpResult.ok("成功返回数据");
    }

}
